package moe.oil.exception.user;

import moe.oil.exception.ErrorType;
import moe.oil.exception.ServiceException;
import org.springframework.http.HttpStatus;

public class UsernameExistException extends ServiceException {
    public UsernameExistException(String username) {
        super(String.format("%s 用户名已存在", username),
                HttpStatus.BAD_REQUEST,
                ErrorType.INVALID,
                username);
    }
}
